<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a="http://richfaces.org/a4j" template="/layout/template.xhtml">
	
	<ui:define name="center">
		<h:form id="flightList">
			<a:keepAlive beanName="newFlight" ajaxOnly="true"></a:keepAlive>
			<rich:extendedDataTable id="tblFlightList"
				value="#{newFlight.getExpiredFlight()}" var="fl" sortMode="single">
				
				<rich:column id="col_CityFrom" label="#{flightmsgs['fromCity']}">
					<f:facet name="header">#{flightmsgs['fromCity']}</f:facet>
					<h:outputText
						value="#{atsmUtils.translate(fl.flightLine.getFrom())}" />
				</rich:column>
				<rich:column id="col_CityTo" label="#{flightmsgs['toCity']}">
					<f:facet name="header">#{flightmsgs['toCity']}</f:facet>
					<h:outputText value="#{atsmUtils.translate(fl.flightLine.getTo())}" />
				</rich:column>
				<rich:column id="col_Plane" label="#{flightmsgs['plane']}">
					<f:facet name="header">#{flightmsgs['plane']}</f:facet>
					<h:outputText value="#{fl.plane.getPlaneName()}" />
				</rich:column>
				<rich:column id="col_DepartDate" label="#{flightmsgs['departDate']}">
					<f:facet name="header">#{flightmsgs['departDate']}</f:facet>
					<h:outputText value="#{fl.getDepartDate()}">
						<f:convertDateTime pattern="dd/MM/yyyy" />
					</h:outputText>
				</rich:column>
				<rich:column id="col_ArriveDate" label="#{flightmsgs['arriveDate']}">
					<f:facet name="header">#{flightmsgs['arriveDate']}</f:facet>
					<h:outputText value="#{fl.getArriveDate()}">
						<f:convertDateTime pattern="dd/MM/yyyy" />
					</h:outputText>
				</rich:column>
			</rich:extendedDataTable>
			
		</h:form>
	</ui:define>
</ui:composition>